package test.san.baseproject.ui.activity

import android.preference.PreferenceManager
import android.util.Log
import androidx.appcompat.widget.Toolbar
import org.jetbrains.anko.find
import test.san.baseproject.R
import test.san.baseproject.base.BaseAvtivity
import test.san.baseproject.util.ToolBarManager

class SettingActivity: BaseAvtivity(), ToolBarManager {
    override val toolBar by lazy { find<Toolbar>(R.id.toolbar) }

    override fun getLayoutId(): Int {
        return R.layout.activity_setting
    }


    override fun initData() {
        initSettingToolBar()
        // 读取数据
        val preferenceManager = PreferenceManager.getDefaultSharedPreferences(this)
        val push = preferenceManager.getBoolean("push", false)
        Log.e("SettingActivity", "push = ${push}")
    }
}